<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');
/**
 * Admin controller
 */
class Admin extends SM_ADMIN_Controller
{

    /**
     * check the user permission
     */
    public function index()
    {
        if (!$this->session->userdata('loggedin')) {
            redirect('/admin/auth/login');
        } else {
            redirect('/admin/dashboard/');
        }
    }

}
